package cn.pconline.autoclub.entity;

import java.util.Date;
import org.gelivable.dao.Column;
import org.gelivable.dao.Entity;
import org.gelivable.dao.Id;

/**
 * 车友会相片
 *
 * @author <a href="mailto:chensy0203@163.com">chensy</a>
 */
@Entity(tableName = "ac_club_photo", firstLevelCache = true, split = "Mod:clubId:10")
public class ClubPhoto {

    public final static int STATUS_NORMAL = 0;  // 正常状态
    public final static int STATUS_DELETE = -1; // 已删除状态
    @Id
    @Column(name = "club_id")
    private long clubId; // ID
    @Id
    @Column(name = "album_id")
    private long albumId; // 相册ID
    @Id
    @Column(name = "photo_id")
    private long photoId; // 
    @Column(name = "create_by")
    private long createBy; // 创建者
    @Column(name = "create_at")
    private Date createAt; // 更新时间
    @Column(name = "status")
    private int status = STATUS_NORMAL; // 状态

    public long getClubId() {
        return clubId;
    }

    public void setClubId(long clubId) {
        this.clubId = clubId;
    }

    public long getPhotoId() {
        return photoId;
    }

    public void setPhotoId(long photoId) {
        this.photoId = photoId;
    }

    public long getAlbumId() {
        return albumId;
    }

    public void setAlbumId(long albumId) {
        this.albumId = albumId;
    }

    public long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(long createBy) {
        this.createBy = createBy;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
